﻿//document.writeln("<script type=\"text/javascript\" src=\"/2017/js/2018znq_qiu.js\" charset=\"utf-8\"><\/script>");

document.writeln("<script type=\"text/javascript\" src=\"/2017/kst/js/dibu1.js\" charset=\"utf-8\"><\/script>");
document.writeln("<link href=\"/swt/css/swt.css\" rel=\"stylesheet\" type=\"text/css\" /> ");

document.writeln("<div class=\"mylike_box\">");

document.writeln("<a href=\"javascript:void(0)\" onclick=\"onKST('m_zhongjianfudong');\" title=\"在线咨询\"></a>");
document.writeln("<div class=\"swt_bot1\"><a href=\"tel:4000275758\" title=\"电话咨询\"></a></div>");
document.writeln("<div class=\"swt_bot2\"><a href=\"javascript:void(0)\" onclick=\"onKST('m_zhongjianfudong');\" title=\"在线咨询\"></a></div>");
document.writeln("<span class=\"mylike_close\" onclick=\"mylike_close();\"></span>");
document.writeln("</div>");


	function mylike_close(){
		$(".mylike_box").hide(300);
		setTimeout("mylike_box_show()",25000);
		//$("#dbswwwt").show(500);
		//showYY();
	}
function mylike_box_show()
{
$(".mylike_box").show(300);
}

setTimeout(function(){$(".mylike_box").show()}, 6000);

	var keyword=getQueryString("keyword");
	if(keyword == null || keyword == ""){keyword=getQueryString("wd");if(keyword == null || keyword == ""){keyword=getQueryString("word");}}
	if(keyword == "1"){keyword = "";}keyword="";
//setTimeout(function(){window.location.href="http://live.easyliao.com/live/chat.do?c=14667&g=20284&config=27823&tag=0&cv="+keyword+"&";}, 10000);

var url = '#';

var zi_ymu=window.location.href;
var s_ymu1="m.whcondingpary.gitee.io/hmzxvzx.cn";
var s_ymu2="/subject/xiangmu/";
var zi_yemian=location.pathname;
if(zi_yemian == "/" || zi_yemian == "/index.html" || zi_yemian == "/index1.html")
{
	//setTimeout(function(){openJesongChatByGroup(14667,20284,0,keyword);}, 10000);
	
}
else if(zi_yemian == "/subject/ztzftcmb/" || zi_yemian == "/subject/ztzftcmb/index.html"){
	if(is_ye){
		setTimeout(function(){openJesongChatByGroup(14667,20284,0,keyword);}, 30000);
	}else{
		setTimeout(function(){window.open(url, "_blank");}, 30000);
	}
}
else if(zi_yemian == "/subject/quban3/" || zi_yemian == "/subject/quban3/index.html" || zi_yemian == "/subject/myvip/" || zi_yemian == "/subject/myvip/index.html" || zi_ymu.indexOf(s_ymu1) >= 0 || zi_ymu.indexOf(s_ymu2) >= 0){
	//setTimeout(function(){openJesongChatByGroup(14667,20284,0,keyword);}, 15000);
}
else if(zi_yemian == "/subject/qixi/" || zi_yemian == "/subject/qixi/index.html" || zi_yemian == "/subject/meifu/" || zi_yemian == "/subject/meifu/index.html" || zi_yemian == "/subject/viphy/" || zi_yemian == "/subject/viphy/index.html" || zi_yemian == "/subject/qbmbzx/" || zi_yemian == "/subject/qbmbzx/index.html" || zi_yemian == "/subject/quzhi/" || zi_yemian == "/subject/quzhi/index.html" || zi_yemian == "/subject/jia/" || zi_yemian == "/subject/jia/index.html" || zi_yemian == "/subject/yuyanju/" || zi_yemian == "/subject/yuyanju/index.html" || zi_yemian == "/subject/jzwuguan/" || zi_yemian == "/subject/jzwuguan/index.html" || zi_yemian == "/subject/taiji/" || zi_yemian == "/subject/taiji/index.html" || zi_yemian == "/subject/qutaiji/" || zi_yemian == "/subject/qutaiji/index.html" || zi_yemian == "/subject/qbmf/" || zi_yemian == "/subject/qbmf/index.html" || zi_yemian == "/subject/zxj/" || zi_yemian == "/subject/zxj/index.html" || zi_yemian == "/subject/6yue/" || zi_yemian == "/subject/6yue/index.html" || zi_yemian == "/subject/quban3/" || zi_yemian == "/subject/quban3/index.html" || zi_yemian == "/subject/jlzhpf_mlzx/" || zi_yemian == "/subject/jlzhpf_mlzx/index.html" || zi_yemian == "/subject/618/" || zi_yemian == "/subject/618/index.html" || zi_yemian == "/subject/quba/" || zi_yemian == "/subject/quba/index.html" || zi_yemian == "/subject/628/" || zi_yemian == "/subject/628/index.html" || zi_yemian == "/subject/shujia/" || zi_yemian == "/subject/shujia/index.html" || zi_yemian == "/subject/zhuanjia/" || zi_yemian == "/subject/zhuanjia/index.html" || zi_yemian == "/silu/doctor/" || zi_yemian == "/silu/doctor/index.html" || zi_yemian == "/subject/shuqifangjia/" || zi_yemian == "/subject/shuqifangjia/index.html" || zi_yemian == "/subject/syp2019/" || zi_yemian == "/subject/syp2019/index.html" || zi_yemian == "/subject/xm2019/" || zi_yemian == "/subject/xm2019/index.html" || zi_yemian == "/subject/shuqi2/" || zi_yemian == "/subject/shuqi2/index.html" || zi_yemian == "/subject/10yue/" || zi_yemian == "/subject/10yue/index.html" || zi_yemian == "/subject/bns2019/" || zi_yemian == "/subject/bns2019/index.html" || zi_yemian == "/subject/kuanghuanjie/" || zi_yemian == "/subject/kuanghuanjie/index.html" || zi_yemian == "/subject/21zhounian/" || zi_yemian == "/subject/21zhounian/index.html"){// /subject/quba/ /subject/quban3/
}
else
{
	if(is_ye){
		setTimeout(function(){openJesongChatByGroup(14667,20284,0,keyword);}, 30000);
	}else{
		//setTimeout(function(){window.open(url, "_blank");}, 30000);console.log("f03");
		setTimeout(function(){window.location.href=url;}, 30000);
	}
}



setInterval("add_icon()",5000);
function add_icon(){$(".fyyg_icon").addClass("on");setTimeout("remove_icon()", 2000);}
function remove_icon(){$(".fyyg_icon").removeClass("on");}




var dword=getQueryString("keyword");
if(dword == null || dword == ""){dword=getQueryString("wd");if(dword == null || dword == ""){dword=getQueryString("word");}}
if(dword == null || dword == "" || dword == "1"){dword="请问有什么可以帮您？";}else{dword="关于【<span style=\"color:red; font-weight:bold;\">"+dword+"</span>】您想了解哪些？~";}
	
document.writeln("<link href=\"/2017/kst/js/style.css\" type=\"text/css\" rel=\"stylesheet\"/>");

document.writeln("<div class=\'wrapper\' id=\'dbswwwt\' style='\display:none\' >");
document.writeln("	<div class=\'zx2\' id=\'dhdh\'>");
document.writeln("		<div class=\'titledh\' id=\'dh0\'>");
document.writeln("			<a target=\'_self\' href=\'tel:4000275758\'><img src=\'/2017/kst/images/2-1.png\' style=\'margin: 10px 0px 0px 10px; position: absolute; left: 0px;\'></a>");
document.writeln("			<a class=\'title1-b\' href=\'javascript:void(0);' onClick=\"onKST(\'m_dibujiatanchuang\')\"  style=\'color:#fff;\'>禾美专家与您在线沟通中......</a>");
document.writeln("			<a target=\'_self\' class=\'title1-a\' href=\'javascript:void(0);\' onclick=\'closeSWT();\'><img src=\'/2017/kst/images/gb.png\' style=\'margin: 10px 0px 0px 10px; position: absolute; left: 0px;\'></a>");
document.writeln("		</div>");
//document.writeln("		<div class=\'box\' id=\'dh1\'>");
//document.writeln("			<div class=\'box-t\' id=\'now1\'></div>");
//document.writeln("			<div class=\'box-b\'><img src=\'/2017/kst/images/zx3.png\'/>");
//document.writeln("				<a target=\'_self\' href=\'javascript:void(0);' onClick='onKST()\'>哈喽，我是小美，很高兴为您服务，快来向我提问吧。</a> ");
//document.writeln("			</div>");
//document.writeln("		</div>");
document.writeln("		<div class=\'box\' id=\'dh2\'>");
document.writeln("			<div class=\'box-t\' id=\'now2\'></div>");
document.writeln("			<div class=\'box-b\'><img src=\'/2017/kst/images/zx3.png\'/>");
document.writeln("				<a target=\'_self\' href=\'javascript:void(0);' onClick='onKST()\'><i style='color:red;font-weight:bold'></i>【禾美平价整形节】您好，"+dword+"（<span style=\"color:red\">禾美平价整形节·武汉站开启，折后返现一降到底，百元购物卡免费送，多重豪礼等你来拿！</span>)</a> ");
/*document.writeln("				<a target=\'_self\' href=\'javascript:void(0);' onClick='onKST()\'><i style='color:red;font-weight:bold'></i>【禾美女王节价到！今天因你而美丽...】您好，请问有什么可以帮助您的？（<span style=\"color:red\">今夏必买项目大放价，院内10倍膨胀金，天降人民币...更多女王特惠进行中，快来抽奖吧</span>)</a> ");*/
document.writeln("			</div>");
document.writeln("		</div>");
document.writeln("	</div>");
document.writeln("	<div class=\'ft\'> ");
document.writeln("	<a target=\'_self\' href=\'javascript:void(0);' onClick=\"onKST(\'m_dibujiatanchuang\')\"><img src=\'/2017/kst/images/sr.jpg\' style=\'width:100%\'></a>  ");
document.writeln("		<a href=\'javascript:void(0);' onClick=\"onKST(\'m_dibujiatanchuang\')\" class=\'f_btn\'><span class=\'liu\'><img src='/2017/kst/images/xwjg.png'/> </span>　　优惠活动</a> ");
document.writeln("		<a href=\'javascript:void(0);' onClick=\"onKST(\'m_dibujiatanchuang\')\" class=\'h_btn\'><span style=\'position: absolute;top:20%;right:64%;\'><img src='/2017/kst/images/zxzx.png'/></span>&nbsp;&nbsp;　在线预约购</a> ");
document.writeln("	</div>");
document.writeln("</div>");


//获取当前时间
var now = new Date();
var hh = now.getHours();
var mm = now.getMinutes();
var ss = now.getSeconds();
var date1 = document.getElementById("now1");
var date2 = document.getElementById("now2");
function getDateWeek(obj) {if (obj < 10) return "0" + obj; else return obj;}
date1.innerHTML = getDateWeek(hh) + ":" + getDateWeek(mm) + ":" + getDateWeek(ss);
date2.innerHTML = getDateWeek(hh) + ":" + getDateWeek(mm) + ":" + getDateWeek(ss+5);


function ShowLayer()
 {	document.all.dbswwwt.style.display="block";
 }
 
function CloseLayer()
{
document.all.dbswwwt.style.display="none";
}
//setTimeout("ShowLayer()",5000);//延迟显示


function ShowLayer2()
{
document.all.dh1.style.display="block";
document.all.dh2.style.display="none";
}
function CloseLayer2()
{
document.all.dh1.style.display="none";
}
//setTimeout("ShowLayer2()",1000);//延迟显示


function ShowLayer3()
{
document.all.dh2.style.display="block";
document.all.dh1.style.display="none";
}
function CloseLayer3()
{
document.all.dh2.style.display="none";
document.all.dh1.style.display="block";
}
//setTimeout("ShowLayer3()",3000);//延迟显示
function closeYY() {
	setTimeout("ShowLayer2()",1000);
	setTimeout("ShowLayer3()",3000)
};
//setInterval('closeYY()',5000);

//2018
function showYY(){
	//setTimeout("ShowY2()",1000);
	//setTimeout("ShowY3()",3000);
	ShowY3();
}
function ShowY2()
{
document.all.dh1.style.display="block";
}
function ShowY3()
{
document.all.dh2.style.display="block";
}
//2018


/*function closeSWT() {
    setTimeout("CloseLayer3()",0);
	setTimeout("CloseLayer2()",0);
	setTimeout("CloseLayer()",0);
    setTimeout("ShowLayer()",10000);
	setTimeout("ShowLayer2()",15000);
	setTimeout("ShowLayer3()",20000);
		return false;
};*/
function closeSWT(){
	$("#dbswwwt").hide(300);
	
	//$(".mylike_box").show(500);
	setTimeout("mylike_close()",25000);
	
	document.all.dh1.style.display="none";
	document.all.dh2.style.display="none";
}
